    <h2><?php print_string('openid_enabled_google', 'auth_openid') ?></h2>
      <div class="subcontent loginsub">
        <form name="GoogleOpenID_form" action="<?php p($endpoint); ?>" method="post" id="openidlogin">
              <div class="desc">
          <?php

          if ($user_loggedin) {
            if ($user_is_openid && $allow_append) {
                echo '<input type="hidden" name="openid_action" value="append" />';
                print_string('append_text', 'auth_openid');
            } elseif (!$user_is_openid && $allow_change) {
                echo '<input type="hidden" name="openid_action" value="change" />';
                print_string('change_text', 'auth_openid');
            }
          } else {
            print_string('openid_text', 'auth_openid');
          }

          ?>
                  </div>
          <div style="padding: 1em;">
            <input type="hidden" id="openid_url" name="openid_url" value="https://www.google.com/accounts/o8/id"/>
            <input type="image" onclick="document.GoogleOpenID_form.submit();" src="<?php echo "{$CFG->wwwroot}/auth/openid/custom/images/google_accounts.gif"; ?>" />
          </div>
                </form>
            <div class="desc"><small>
          <?php
          if ($login_all) {
              if (!$user_loggedin) {
                print_string('openid_note', 'auth_openid');
              } else {
                print_note_user();
              }
          }
          ?></small></div>
